package com.larry

object Scala_for {
  def main(args: Array[String]): Unit = {
    for ( i <- 1 to 5 by 2){
      println(i)
    }

    for ( i <- Range(5,1,-1)){
      println(i)
    }
  }

}
